import routerMap from './router.map'
import { parseRoutes } from './routerUtil'

// 异步路由配置
const routesConfig = [
  'login',
  {
    router: 'home',
    children: [
      {
        router: 'system',
        name: 'system',
        children: [
          'role',
          'menu',
          "user"
        ]
      },
    ]
}
]

const options = {
  routes: parseRoutes(routesConfig, routerMap)
}

export default options
